package gov.ccswj.modules.ccbusiness.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import gov.ccswj.modules.ccbusiness.dao.CMainstaffDao;
import gov.ccswj.modules.ccbusiness.entity.CMainstaffEntity;
import gov.ccswj.modules.ccbusiness.service.CMainstaffService;



@Service("cMainstaffService")
public class CMainstaffServiceImpl implements CMainstaffService {
	@Autowired
	private CMainstaffDao cMainstaffDao;
	
	@Override
	public CMainstaffEntity queryObject(Integer id){
		return cMainstaffDao.queryObject(id);
	}
	
	@Override
	public List<CMainstaffEntity> queryList(Map<String, Object> map){
		return cMainstaffDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return cMainstaffDao.queryTotal(map);
	}
	
	@Override
	public void save(CMainstaffEntity cMainstaff){
		cMainstaffDao.save(cMainstaff);
	}
	
	@Override
	public void update(CMainstaffEntity cMainstaff){
		cMainstaffDao.update(cMainstaff);
	}
	
	@Override
	public void delete(Integer id){
		cMainstaffDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		cMainstaffDao.deleteBatch(ids);
	}
	@Override
	public void deleteByname(String entname) {
		cMainstaffDao.delete(entname);
		
	}
}
